package com.mall.auth.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wuyijie
 * @since 2021-06-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="OauthClientDetails对象", description="")
public class OauthClientDetails extends Model {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户端id")
    @TableId(value = "ID", type = IdType.INPUT)
    private String clientId;

    @ApiModelProperty(value = "资源ids")
    @TableField("resource_ids")
    private String resourceIds;

    @ApiModelProperty(value = "客户端密钥")
    @TableField("client_secret")
    private String clientSecret;

    @ApiModelProperty(value = "作用域")
    @TableField("scope")
    private String scope;

    @ApiModelProperty(value = "授权的类型")
    @TableField("authorized_grant_types")
    private String authorizedGrantTypes;

    @ApiModelProperty(value = "webserver重定向地址")
    @TableField("web_server_redirect_uri")
    private String webServerRedirectUri;

    @ApiModelProperty(value = "authorities")
    @TableField("authorities")
    private String authorities;

    @ApiModelProperty(value = "访问令牌的有效性")
    @TableField("access_token_validity")
    private Integer accessTokenValidity;

    @ApiModelProperty(value = "刷新令牌的有效性")
    @TableField("refresh_token_validity")
    private Integer refreshTokenValidity;

    @ApiModelProperty(value = "附加信息")
    @TableField("additional_information")
    private String additionalInformation;

    @ApiModelProperty(value = "autoapprove")
    @TableField("autoapprove")
    private String autoapprove;


}
